package com.etc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.etc.dao.OrderInfoMapper;
import com.etc.entity.OrderInfo;
import com.etc.service.OrderInfoService;
@Service
public class OrderInfoServiceImpl implements OrderInfoService {
	@Resource
	private OrderInfoMapper orderInfoMapper;
	/**
	 * 按号码查询预约信息
	 */
	@Override
	public List<OrderInfo> selOrderInfoByTel(String patienttel) {
		// TODO Auto-generated method stub
		return orderInfoMapper.selOrderInfoByTel(patienttel);
	}
	/**
	 * 取消预约信息
	 * @param patientTel 病人号码
	 * @param RegistrationTime 预约的时间
	 * @return
	 */
	@Override
	public boolean delOrderByTime(String patientTel, String RegistrationTime) {
		// TODO Auto-generated method stub
		return orderInfoMapper.delOrderByTime(patientTel, RegistrationTime);
	}

}
